package t5;

import com.sun.source.tree.CatchTree;

public class Number {
   private double n1;
   private double n2;

    public double getN1() {
        return n1;
    }

    public void setN1(double n1) {
        this.n1 = n1;
    }

    public double getN2() {
        return n2;
    }

    public void setN2(double n2) {
        this.n2 = n2;
    }
    public Number() {

    }
    public Number(int n1,int n2) {
        this.n1=n1;
        this.n2=n2;
    }
    public double addition() {
        return (getN1()+getN2());
    }
    public double subtration() {
        return (getN1()-getN2());
    }
    public double multiplication() {
        return (getN1()*getN2());
    }
    public double division() {
        return (getN1()/getN2());
    }


}
